package com.example.rule.condition;

import com.example.rule.db.entity.PymtRule;
import com.example.rule.core.Condition;
import com.example.rule.core.Representation;

/**
 * @author Jason - Chusifeng
 * @version 1.0.0
 * @className ConditionAdaptor.java
 * @packageName com.example.rule.condition
 * @createTime 2022年10月12日 10:01:21
 * @description
 */
public class ConditionAdaptor {

    private Condition condition;

    private Representation representation;

    public void setCondition(Condition condition) {
        this.condition = condition;
    }

    public void setExpression(Representation representation) {
        this.representation = representation;
    }

    public String[] createExpressStr(PymtRule rule) {
       return condition.createExpressStr(representation,rule);
    }
}
